﻿using Beetle;
using System;
using System.Collections;
using System.Text;

internal class Class_l
{
    private static object _field_a = new object();
    private static Hashtable _field_b = new Hashtable(0x2800);

    public static void a(int A_0)
    {
        _field_b = new Hashtable(A_0);
    }

    public static byte[] a(string A_0, Encoding A_1, Class_aj A_2)
    {
        byte[] dst = (byte[]) _field_b[A_0];
        if (dst == null)
        {
            lock (_field_a)
            {
                dst = (byte[]) _field_b[A_0];
                if (dst == null)
                {
                    ByteArraySegment segment = null;
                    dst = new byte[segment.Count];
                    Buffer.BlockCopy(segment.Array, segment.Offset, dst, 0, segment.Count);
                    _field_b.Add(A_0, dst);
                }
            }
        }
        return dst;
    }
}

